home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / plnk081.zip / pilot-link.0.8.1 / include / pi-padp.h < prev    next >
C/C++ Source or Header  |  1997-05-23  |  723b  |  39 lines

  1. #ifndef _PILOT_PADP_H_
  2. #define _PILOT_PADP_H_
  3.  
  4. #include "pi-args.h"
  5.  
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9.  
  10. #include "pi-socket.h"
  11.  
  12. #define padData   1
  13. #define padWake   0x101
  14. #define padAck    2
  15. #define padTickle 4
  16. #define padAbort 8 /* PalmOS 2.0 only */
  17.  
  18. #define FIRST 0x80
  19. #define LAST  0x40
  20. #define MEMERROR 0x20
  21.  
  22. struct padp {
  23.   unsigned char type;
  24.   unsigned char flags;
  25.   unsigned short size;
  26. };
  27.  
  28. #define SIZEOF_PADP 4
  29.  
  30. extern int padp_tx PI_ARGS((struct pi_socket *ps, void *msg, int len, int type));
  31. extern int padp_rx PI_ARGS((struct pi_socket *ps, void *buf, int len));
  32. extern void padp_dump PI_ARGS((struct pi_skb *skb, struct padp* padp, int rxtx));
  33.  
  34. #ifdef __cplusplus
  35. }
  36. #endif
  37.  
  38. #endif /* _PILOT_PADP_H_ */
  39.